package com.love.marriage.userRechargeRecordInfo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.love.marriage.common.vo.BaseVo;
import com.love.marriage.config.Long2StringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * description:  充值记录表Vo
 * author:       mybatisPlus
 * createDate:   2024-10-16 23:06:22
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "UserRechargeRecordInfoVo", description = "充值记录表Vo")
public class UserRechargeRecordInfoVo extends BaseVo<UserRechargeRecordInfoVo>{

    @JsonSerialize(using = Long2StringSerializer.class)
    @Schema(description = "用户ID，关联到用户表", type = "Long", implementation = Long.class)
    private Long userId;

    @Schema(description = "充值金额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal amount;

    @Schema(description = "充值状态（0: 进行中, 1: 成功, 2: 失败）", type = "Boolean", implementation = Boolean.class)
    private Boolean status;

    @Schema(description = "操作", type = "String", implementation = String.class)
    private String type;

    @Schema(description = "赠送金额", type = "BigDecimal", implementation = BigDecimal.class)
    private BigDecimal bonusAmount;

    @Schema(description = "开始时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    private LocalDateTime fromTime;

    @Schema(description = "结束时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    private LocalDateTime toTime;
}
